package com.molin.threadTest.threadDemo3;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<String> {
    @Override
    public String call() throws Exception {
        //返回值，就表示线程运行完毕后的结果
        for (int i = 0; i < 100; i++) {
            System.out.println("线程的实现方法3： "+i);
        }
        return "线程执行完毕";
    }
}
